#ifndef __TCP_SERVER__H__
#define __TCP_SERVER__H__
#include <string>
#include "msg.h"
class IpAddressPort;

class TcpServer
{
private:
    int m_lfd;
public:
    TcpServer(const IpAddressPort&);
    ~TcpServer();
    int SendMsg(int cfd,const std::string& msg);
    Msg RecvMsg(int cfd);
    int Accept();
    int GetLfd()const;
};

#endif